//
//  BaseGameNode.h
//  flybike
//
//  Created by Eric on 12-12-20.
//
//
#import "cocos2d.h"
#import "CCLayer.h"
#import "Box2DCallbacks.h"
#import "GLES-Render.h"

@interface BaseGameNode : CCLayer{
    
    // box2d world
	b2World		*world_;
    
    int screenW_;
	int screenH_;

    GLESDebugDraw *render_;
    
    // box2d callbacks
    // In order to compile on SDK 2.2.x or older, they have to be pointers
    MyContactFilter			*m_contactFilter;
    MyContactListener		*m_contactListener;
    MyDestructionListener	*m_destructionListener;
}
@property (readwrite,nonatomic) b2World *world;
@property (readonly) int screenW;
@property (readonly) int screenH;


+ (CCScene*) scene ;
-(void) initPhysics;
@end
